Optimal. Leaf size=157 \[ -x \tanh ^{-1}(a x)+\frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{2 a}+\frac {2 \tanh ^{-1}(a x)^3}{3 a}+\frac {2}{3} x \tanh ^{-1}(a x)^3+\frac {1}{3} x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3-\frac {2 \tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{a}-\frac {\log \left (1-a^2 x^2\right )}{2 a}-\frac {2 \tanh ^{-1}(a x) \text {PolyLog}\left (2,1-\frac {2}{1-a x}\right )}{a}+\frac {\text {PolyLog}\left (3,1-\frac {2}{1-a x}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.471, Rules used = {6091, 6021,
6131, 6055, 6095, 6205, 6745, 266} \begin {gather*} -\frac {\log \left (1-a^2 x^2\right )}{2 a}+\frac {1}{3} x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3+\frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{2 a}+\frac {\text {Li}_3\left (1-\frac {2}{1-a x}\right )}{a}-\frac {2 \text {Li}_2\left (1-\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)}{a}+\frac {2}{3} x \tanh ^{-1}(a x)^3+\frac {2 \tanh ^{-1}(a x)^3}{3 a}-x \tanh ^{-1}(a x)-\frac {2 \log \left (\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)^2}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 6021
Rule 6055
Rule 6091
Rule 6095
Rule 6131
Rule 6205
Rule 6745
Rubi steps
\begin {align*} \int \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3 \, dx &=\frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{2 a}+\frac {1}{3} x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3+\frac {2}{3} \int \tanh ^{-1}(a x)^3 \, dx-\int \tanh ^{-1}(a x) \, dx\\ &=-x \tanh ^{-1}(a x)+\frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{2 a}+\frac {2}{3} x \tanh ^{-1}(a x)^3+\frac {1}{3} x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3+a \int \frac {x}{1-a^2 x^2} \, dx-(2 a) \int \frac {x \tanh ^{-1}(a x)^2}{1-a^2 x^2} \, dx\\ &=-x \tanh ^{-1}(a x)+\frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{2 a}+\frac {2 \tanh ^{-1}(a x)^3}{3 a}+\frac {2}{3} x \tanh ^{-1}(a x)^3+\frac {1}{3} x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3-\frac {\log \left (1-a^2 x^2\right )}{2 a}-2 \int \frac {\tanh ^{-1}(a x)^2}{1-a x} \, dx\\ &=-x \tanh ^{-1}(a x)+\frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{2 a}+\frac {2 \tanh ^{-1}(a x)^3}{3 a}+\frac {2}{3} x \tanh ^{-1}(a x)^3+\frac {1}{3} x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3-\frac {2 \tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{a}-\frac {\log \left (1-a^2 x^2\right )}{2 a}+4 \int \frac {\tanh ^{-1}(a x) \log \left (\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx\\ &=-x \tanh ^{-1}(a x)+\frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{2 a}+\frac {2 \tanh ^{-1}(a x)^3}{3 a}+\frac {2}{3} x \tanh ^{-1}(a x)^3+\frac {1}{3} x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3-\frac {2 \tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{a}-\frac {\log \left (1-a^2 x^2\right )}{2 a}-\frac {2 \tanh ^{-1}(a x) \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a}+2 \int \frac {\text {Li}_2\left (1-\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx\\ &=-x \tanh ^{-1}(a x)+\frac {\left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^2}{2 a}+\frac {2 \tanh ^{-1}(a x)^3}{3 a}+\frac {2}{3} x \tanh ^{-1}(a x)^3+\frac {1}{3} x \left (1-a^2 x^2\right ) \tanh ^{-1}(a x)^3-\frac {2 \tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{a}-\frac {\log \left (1-a^2 x^2\right )}{2 a}-\frac {2 \tanh ^{-1}(a x) \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a}+\frac {\text {Li}_3\left (1-\frac {2}{1-a x}\right )}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 134, normalized size = 0.85 \begin {gather*} -\frac {6 a x \tanh ^{-1}(a x)-3 \tanh ^{-1}(a x)^2+3 a^2 x^2 \tanh ^{-1}(a x)^2+4 \tanh ^{-1}(a x)^3-6 a x \tanh ^{-1}(a x)^3+2 a^3 x^3 \tanh ^{-1}(a x)^3+12 \tanh ^{-1}(a x)^2 \log \left (1+e^{-2 \tanh ^{-1}(a x)}\right )+3 \log \left (1-a^2 x^2\right )-12 \tanh ^{-1}(a x) \text {PolyLog}\left (2,-e^{-2 \tanh ^{-1}(a x)}\right )-6 \text {PolyLog}\left (3,-e^{-2 \tanh ^{-1}(a x)}\right )}{6 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 24.34, size = 749, normalized size = 4.77 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int a^{2} x^{2} \operatorname {atanh}^{3}{\left (a x \right )}\, dx - \int \left (- \operatorname {atanh}^{3}{\left (a x \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int {\mathrm {atanh}\left (a\,x\right )}^3\,\left (a^2\,x^2-1\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________